#! /bin/sh
#
# $Id$
#

KILLALL="/usr/bin/killall"
SED="/usr/bin/sed"

SYSLOGD_CONF="${PKG_DESTDIR-}/etc/syslogd.conf"

if [ "$2" = "POST-DEINSTALL" ]; then
	echo -n "Cleaning up ${SYSLOGD_CONF}..."
	if [ -f ${SYSLOGD_CONF} ]; then
		${SED} -e "/# Begin syslogConf settings/,/# End syslogConf settings/d" -i "" ${SYSLOGD_CONF}
	fi

	${KILLALL} -1 syslogd

	echo " Done."
fi
